//
//  UIViewController+RNOLExtension.h
//  RongNiuOnline
//
//  Created by apple on 2018/4/2.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (RNOLExtension)

#pragma mark- 弹出登录控制器
- (void)showLoginViewController ;

#pragma mark - 无传参的push页面
- (void)pushPageWithClass:(Class)cla ;

///web 
- (void)skipWebPageWithHtmlLink:(NSString *)url title:(NSString *)title;
- (void)skipWebPageWithHtmlLink:(NSString *)url title:(NSString *)title methodType:(RNOLWebRequestType)type parmsDict:(NSDictionary *)paramsDict;

//设置状态栏颜色
- (void)setStatusBarBackgroundColor:(UIColor *)color;

// 给导航栏添加标题
- (void)setupNavBarTitleViewWithText:(NSString *)text;
#pragma mark- 添加导航栏右侧的按钮
- (void)setRightItemButtons:(NSArray *)buttons ;
#pragma mark- 添加左边返回按钮
- (void)addNavgationLeftBackButton;


//导航栏按钮
- (void)setupNavBarRightButtonWithTitle:(NSString *)title;
- (void)setupNavBarLeftButtonWithTitle:(NSString *)title ;
- (void)addNavLeftButtonWithImage:(NSString *)imageName;
- (void)addNavRightButtonWithImage:(NSString *)imageName;

#pragma mark- 后退多少步
- (void)goBackByBackStep:(NSInteger)step animated:(BOOL)animated ;


#pragma mark- 提示错误信息
- (void)showErrorMessageWithText:(NSString*)text;
#pragma mark- 提示成功信息
- (void)showSuccessMessageWithText:(NSString*)text;
#pragma mark- 提示信息
- (void)showStatusTipWithText:(NSString *)text;


#pragma mark- 移除导航栏
- (void)wgb_setClearNavgationBar;
#pragma mark - 重新设置导航栏
-(void)wgb_resetNavgationBar ;

#pragma mark- 大标题 左右俩按钮的wgbStyle风格弹窗
- (void)wgbStyle_alertWithTitle:(NSString *)title
              cancelButtonTitle:(NSString *)cancelTitle
             confirmButtonTitle:(NSString *)confirmTitle
                   cancelAction:(void(^)(void))cancelCallBackBlock
                  comfirmAction:(void(^)(void))confirmCompeteBlock ;
// [取消]-[确认] 弹框
- (void)customAlertWithTitle:(NSString *)title
                cancelAction:(void(^)(void))cancelCallBackBlock
               comfirmAction:(void(^)(void))confirmCompeteBlock;


@end
